//类型到正则的映射,配置是否符合解析格式的程度
export const regTypeMap = {
    segNo: /^\d{1,2}\.?$/,
    flightNo: /^[a-zA-Z]{2}\d{3,4}$/,
    cabinCode: /^[A-Z]{1}$/,
    timeDetail: /^[a-zA-Z]{2}\d{1,2}[a-zA-Z]{3}$/,
    airport: /^[a-zA-Z]{6}$/,
    airportFuzzy:/^[a-zA-Z]{3}$/,
    time: /^\d{3,4}\+?\d{0,1}$/,
};

export const formatSequence = ["segNo", "flightNo", "cabinCode", "timeDetail", "airport", "", "time", "time"];

export const typeNum = { segNo: 1, flightNo: 1, cabinCode: 1, timeDetail: 1, airport: 1, time: 2, airportFuzzy:2 };

export const MonthTransform = {
    JAN: "01", FEB: "02", MAR: "03", APR: "04", MAY: "05", JUN: "06", JUL: "07", AUG: "08", SEP: "09", OCT: "10", NOV: "11", DEC: "12"
}

export const parseKeyMap = ["segNo", "flightNo", "cabinCode", "timeDetail", "airportNames", "flightStatus", "depatureTime", "arrivalTime"]
